import QtQuick 2.0
import QtQuick.Layouts 1.3
import  Quick.UIComponent.SplitLine  0.1


Rectangle{
    id:root

    property var list:[]
    property var length:[]
    property color backColor:"#00000000"

    color: backColor


    property ListModel myModel

    ColumnLayout{
        clip: true
        anchors.fill: parent
        ListView{
            Layout.fillWidth: true
            Layout.fillHeight:  true
            orientation: ListView.Horizontal
            interactive:false
            spacing: 4
            model:list.length
            delegate:child
        }
        MLine{
            Layout.fillWidth: true
            horizonType:true
        }
    }

    Component{
        id:child
        CellDeletege{
            height:  root.height
            width:  length[index]
            text: list[index]
            isTitile:false
        }
    }


}
